/**
 * 
 */
package com.wubo.sec.filter;

import com.wubo.sec.SecurityManager;

/**
 * @author WuBo
 * @CreateDate 2010-8-8
 * @version 1.0.01
 */
public class AuthorityBeforeFilter implements IDataBeforeFilter {

	/* (non-Javadoc)
	 * @see com.asc.sf.filter.IDataBeforeFilter#sift()
	 */
	public String sift() {
		if( SecurityManager.isAdmin() ){
			return "";
		}else{
			return " and a.locked = 0";
		}
	}

}
